package cang.string.Day04.io;

import java.io.FileInputStream;
import java.io.IOException;

public class FOSDemo01 {
    public static void main(String[] args) throws IOException {
        /**
         * 循环读取文件全部字节
         */
        FileInputStream in = new FileInputStream("./fos.txt");
        int b;
        while ((b=in.read())!=-1) {
            System.out.println(b);
        }
        in.close();

    }
}
